// 用户
const user = [
  {
    name: 'userInfo',
    path: '/userInfo',
    meta: {
      title: '个人信息',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/userInfo'], resolve) }
  },
  {
    name: 'msg',
    path: '/msg/:userRole',
    meta: {
      title: '消息中心',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/message'], resolve) }
  },
  {
    name: 'msgList',
    path: '/msgList/:userRole/:type',
    meta: {
      title: '消息助手',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/child/messageList'], resolve) }
  },
  {
    name: 'msgListBill',
    path: '/msgListBill/:userRole/:type',
    meta: {
      title: '账单消息',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/child/messageListBill'], resolve) }
  },
  {
    name: 'cardSetting',
    path: '/cardSetting',
    meta: {
      title: '绑定银行卡',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/bankCardSetting'], resolve) }
  },
  {
    name: 'bindBankCard',
    path: '/bindBankCard',
    meta: {
      title: '绑定银行卡',
      loginRequire: true,
      identityValidate: true
    },
    component: resolve => { require(['@/views/user/bindBankCard'], resolve) }
  },
  {
    name: 'myCredit',
    path: '/myCredit',
    meta: {
      title: '我的信用',
      loginRequire: true,
      identityValidate: true
    },
    component: resolve => { require(['@/views/user/myCredit'], resolve) }
  },
  {
    name: 'setting',
    path: '/setting',
    meta: {
      title: '设置',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/child/setting'], resolve) }
  },
  {
    name: 'resetPwd',
    path: '/resetPwd',
    meta: {
      title: '修改密码',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/child/resetPwd'], resolve) }
  },
  {
    name: 'userHelp',
    path: '/userHelp',
    meta: {
      title: '使用帮助',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/child/userHelp'], resolve) }
  },
  {
    name: 'feedback',
    path: '/feedback',
    meta: {
      title: '意见反馈',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/child/feedback'], resolve) }
  },
  {
    name: 'bindWeChat',
    path: '/bindWeChat',
    meta: {
      title: '微信关联授权',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/child/bindWeChat'], resolve) }
  },
  {
    name: 'about',
    path: '/about',
    meta: {
      title: '关于广州城投住房租赁信息平台',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/child/about'], resolve) }
  },
  {
    name: 'aboutContract',
    path: '/aboutContract',
    meta: {
      title: '用户协议',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/child/aboutContract'], resolve) }
  },
  {
    name: 'myCertificate',
    path: '/myCertificate',
    meta: {
      title: '电子证件生成',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/myCertificate'], resolve) }
  },
  {
    name: 'credentialsCar',
    path: '/credentialsCar',
    meta: {
      title: '电子证件',
      loginRequire: true
    },
    component: resolve => { require(['@/views/user/credentialsCar'], resolve) }
  }
]

export default user
